Learning MATLAB by Walter Gander
Author: Walter Gander , Date: October 10, 2018
, Views: 241
7. Recursion
Walter Gander1
(1)Departement Informatik, ETH Zürich, Zürich, Switzerland
Walter Gander
Email: [email protected]
7.1 Introduction
Recursion is a powerful concept in computer science. The basic idea is that the solution of a problem often can be reduced to solving some smaller instances of the same problem. Recursive solutions can be applied to many problems, one well known strategy is called divide and conquer.
A function is sometimes defined recursively. For instance the factorial, the function
Copyright Disclaimer:
This site does not store any files on its server. We only index and link
to content provided by other sites. Please contact the content providers
to delete copyright contents if any and email us, we'll remove relevant
links or contents immediately.